<?php


namespace app\controllers;


use app\models\request\ReqRoleUpdate;
use app\service\SysRoleService;

class RoleUpdateController extends BaseJsonController
{
    public function doService($req, $userInfo)
    {
        $service = new SysRoleService();
        return $service->update($req);
    }

    protected function injectionReq()
    {
        return new ReqRoleUpdate();
    }



    protected function permissionName()
    {
        return "sys/role/update";
    }
}